#ifndef __XPT2046_H
#define __XPT2046_H

#include "reg51.h"

sbit CS = P3^6;
sbit CLK = P1^7;
sbit DIN = P3^5;
sbit DOUT = P3^4;

void Write(unsigned char dat);
unsigned int Read();
unsigned int ADC(unsigned char cmd);

#endif